﻿using System.Web.UI;

namespace Jaws.Core.Web.Controls
{
    /// <summary>
    /// Summary description for UserControlBase
    /// </summary>
    public abstract class UserControlBase<M> : UserControl where M : class
    {
        public M BaseMasterPage
        {
            get { return (Page.Master as M); }
        }

        protected override void Render(HtmlTextWriter writer)
        {
            writer.AddAttribute("class", "edit");
            writer.RenderBeginTag("div");
            base.Render(writer);
            writer.RenderEndTag();
        }
    }
}